package cn.wolfcode.wolf2w.business.controller;

import cn.wolfcode.wolf2w.business.service.ISMSService;
import cn.wolfcode.wolf2w.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 浪兎兎
 * @since 2025-05-29-13:48
 */
@RestController
@RequestMapping("/sms")
public class SMSController {

    @Autowired
    private ISMSService SMSServiceImpl;

    /**
     *  发送验证码
     */
    @PostMapping("/sendVerifyCode")
    public R<?> sendVerifyCode(String phone) {
        SMSServiceImpl.sendMessage(phone);
        return R.ok();
    }
}
